package cn.fintecher.pangolin.entity.elastic;

import cn.fintecher.pangolin.common.utils.Constants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Date;

/**
 * @Auther: xiaqun
 * @Description: 上传文件记录实体
 * @Date: 10:04 2019/8/30
 */

@Data
@Document(indexName = Constants.UPLOAD_FILE, type = Constants.UPLOAD_FILE, shards = 1, replicas = 0)
@Api(value = "上传文件记录实体", description = "上传文件记录实体")
public class UploadFile {
    @Id
    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "文件名称")
    private String fileName;

    @ApiModelProperty(value = "原始文件名")
    private String originalName;

    @ApiModelProperty(value = "扩展名")
    private String extensionName;

    @ApiModelProperty(value = "访问地址 相对地址")
    private String url;

    @ApiModelProperty(value = "本地文件路径")
    private String localPath;

    @ApiModelProperty(value = "上传时间")
    private Date operateTime;
}
